import java.nio.file.Path;
import java.nio.file.Paths;

class Solution {

    public static void main(String[] args) {
        Path path = Paths.get("D:\\SVN\\哈行卡业务受理需求\\2024年\\CR-2024-020-诉讼材料电子归档需求\\ofd转pdf\\3.pdf");
        System.out.println(path.toFile());
        System.out.println(path.getFileName());
        System.out.println(path.getName(0));
        System.out.println(path.getParent());
        System.out.println(path.getRoot());
        System.out.println(path.spliterator());
    }
}